#include <iostream>
using std::cout;
using std::endl;
using std::string;

void test1(){
    string str="hello world";
    int len=str.length();
    int len2=str.size();
    cout<<len<<endl;
    cout<<len2<<endl;
}
    
int main(int argc, char * argv[]){
    test1();
    return 0;
}

